package cn.shujuhai.meeting.domain;

import cn.shujuhai.common.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.time.LocalTime;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * @TableName reservation
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "reservation")
@Data
public class Reservation extends BaseDomain {
    /**
     *
     */
    @TableId(value = "reservation_id", type = IdType.AUTO)
    private Long reservationId;

    /**
     * 会议主题
     */
    @TableField(value = "purpose")
    private String purpose;

    /**
     * 开始日期
     */
    @TableField(value = "reservation_data")
    private LocalDate reservationData;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private LocalTime startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalTime endTime;

    /**
     * 频次
     */
    @TableField(value = "repeat_type")
    private Long repeatType;

    /**
     * 结束日期
     */
    @TableField(value = "repeat_end_data")
    private LocalDate repeatEndData;
    /**
     * 会议室
     */
    @TableField(exist = false)
    private String roomName;
    /**
     * 预约人
     */
    @TableField(exist = false)
    private String username;
    /**
     * 预约人电话
     */
    @TableField(exist = false)
    private String phone;
    /**
     * 预约人Id
     */
    @TableField(exist = false)
    private Long userId;
}